package simple15.observer;



public class MangoAttention extends Attentions {
    @Override
    public void notifyObservers() {
//        遍历观察者集合,调用每个顾客的购买方法
        for (Observer observer : observers) {
            observer.update();
        }
    }

    //    芒果到货了
    public void perform() {
        this.notifyObservers();
    }
}
